package com.ruoyi.tb.lmt.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 总成部件业务对象 tb_equipment
 *
 * @author ruoyi
 * @date 2023-11-30
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TbEquipmentBo extends BaseEntity {

    /**
     * ID
     */
    @NotNull(message = "ID不能为空", groups = { EditGroup.class })
    private Long ID;

    /**
     * 父节点
     */
    @NotNull(message = "父节点不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long pid;

    /**
     * 大机类型
     */
    @NotBlank(message = "大机类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String lmtType;

    /**
     * 分类代码
     */
    @NotBlank(message = "分类代码不能为空", groups = { AddGroup.class, EditGroup.class })
    private String categoryCode;

    /**
     * 部件名称
     */
    @NotBlank(message = "部件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String equipmentName;

    /**
     * 等级
     */
    private Long level;

    /**
     * id路径
     */
    private String idPath;

    /**
     * 编号路径
     */
    private String codePath;

    /**
     * 名称路径
     */
    private String namePath;

    /**
     * 备注
     */
    private String remark;


}
